///********************************************************************
///* Copyright © 2011 fishr (fishr.flash@gmail.com)  
///********************************************************************
package su.fishr.geom 
{
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.events.Event;
   /**
	 *   Создает каркас в сообщенном DisplayObject
	 * @version                1.0
	 * @playerversion          Flash 9
	 * @langversion            3.0
	 * @author                 fishr
	 * @created                08.10.2011 1:30
	 * @since                  08.10.2011 1:30
	 */
    public final class DrawFrame
	{
	
	/**-------------------------------------------------------------------------------
	* 
	*	   						V A R I A B L E ' S 	
	* 
	* --------------------------------------------------------------------------------
	*/
	//{
	    static private const AUTHOR:String = "fishr (fishr.flash@gmail.com)";	
	//}
	
	/**-------------------------------------------------------------------------------
	* 
	*								P U B L I C 	
	* 
	* --------------------------------------------------------------------------------
	*/
	//{

		public static function drawFrameInSubject(w:Number, h:Number, subject:Sprite):void
		{
			with ( subject.graphics )
			{
				lineStyle( 0, 0x00FF00, 1 );
				lineTo(1, 0);
				moveTo(w, 0);
				lineTo(w, 1 );
				moveTo(w, h );
				lineTo( w - 1, h );
				moveTo( 0, h );
				lineTo(0,  h - 1);
				endFill();
			}
		}
	//}
	

	}

}